home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / bash / bash-108 / bash-108.zoo / bash-1.08 / Makefile.orig < prev    next >
Encoding:
Makefile  |  1991-05-21  |  1.9 KB  |  57 lines

  1. # Hey Emacs, this Makefile is in -*- text -*- mode!
  2. #
  3. # Makefile for Bash.
  4. # If your cpp doesn't like -P, just get rid of it (the -P, not cpp).
  5. # If you wish to use Gcc, then just type "make CC=gcc".
  6. # If you wish to use GNU's Make, then change the MAKE define.
  7. # If you don't like the destination, then change DESTDIR.  (This only
  8. # matters if you are typing `make install'.)
  9. # The file that you most likely want to look at is cpp-Makefile.
  10. #
  11. # If you haven't read README, now might be a good time.
  12.  
  13. DESTDIR = /usr/gnu/bin
  14. MAKE = make
  15. SHELL= /bin/sh
  16. #CPP_DEFINES = -DHAVE_GCC -DHAVE_FIXED_INCLUDES -DHAVE_BISON
  17.  
  18. CPP = /lib/cpp `./cppmagic.sh` -P
  19. #CPP = $(CC) -E
  20.  
  21. CPPFLAGS = $(SYSTEM) $(CPP_DEFINES) -DM_DESTDIR=$(DESTDIR)
  22. CPP_ARGS = -DCPP_CC=$(CC)
  23.  
  24. # Here is a command which compresses runs of multiple blank lines to a
  25. # single blank line.  "cat -s" works for BSD systems, but not for USG
  26. # systems.  You can use an awk script if you like.
  27. #SQUASH_BLANKS = cat -s
  28. #
  29. SQUASH_BLANKS = awk '\''BEGIN { newlines=0 } \
  30.  { if (length ($$0) == 0) newlines = 1; \
  31.    else { if (newlines) { printf "\n"; newlines = 0; } \
  32.    print $$0; }}'\'
  33.  
  34. all:    bash-Makefile
  35.     $(MAKE) $(MFLAGS) $(MAKEARGS) -f bash-Makefile
  36.  
  37. bash-Makefile: cpp-Makefile Makefile machines.h sysdefs.h config.h
  38.     cp cpp-Makefile tmp-Makefile.c
  39.     @/bin/sh -c 'echo $(CPP) $(CPPFLAGS) $(CPP_ARGS) tmp-Makefile.c \| $(SQUASH_BLANKS) \> bash-Makefile'
  40.     @/bin/sh -c '$(CPP) $(CPPFLAGS) $(CPP_ARGS) tmp-Makefile.c | $(SQUASH_BLANKS) >bash-Makefile'
  41.     rm -f tmp-Makefile.c
  42.  
  43. sysdefs.h: makeargs.sh
  44.     ./makeargs.sh
  45.  
  46. # Subsequent lines contain targets that are correctly handled by an
  47. # existing bash-Makefile.
  48.  
  49. install newversion mailable distribution architecture: bash-Makefile
  50.     $(MAKE) $(MAKEARGS) -f bash-Makefile $@
  51.  
  52. bash.tar.Z tags documentation clone clean: bash-Makefile directory-frob
  53.     $(MAKE) $(MAKEARGS) -f bash-Makefile $@
  54.  
  55. directory-frob:
  56.  
  57.